#include<stdio.h>
int main()
{
	float f;
	scanf("%f",&f);
	float c;
	c=(5.0/9.0)*(f-32);
	printf("%.3f",c);
	return 0;
}
